package com.haier.bims.demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.haier.bims.demo.bean.User;
import com.haier.bims.demo.dao.UserDAO;
import com.haier.bims.demo.service.IUserService;

@Component
public class UserServiceImpl implements IUserService {
	
	private UserDAO userDAO;

	@Autowired
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}

	@Override
	public User getUserInfo(String id) {
		User user = userDAO.getUserInfo(id);
		return user;
	}
	
}
